package com.onesports.intelligent.k12.polarlight.domain.dto.market;

import com.onesports.framework.kit.common.valid.NotEmpty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.List;


/**
 * 商品表
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@ApiModel(value = "机构端-添加或修改商品")
public class ProductInsertDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id（添加时不用传")
    private String id;

    @ApiModelProperty(value = "机构id（不用传，后端来）")
    private String organizationId;


    @ApiModelProperty(value = "商品名称")
    @Length(max = 50,message = "商品名称长度不可超过50")
    @NotEmpty(message = "商品名称不可为空")
    private String productName;


    @ApiModelProperty(value = "封面图片")
    @NotEmpty(message = "封面图片不可为空")
    private String coverImage;


    @ApiModelProperty(value = "商品主图")
    @NotEmpty(message = "商品主图不可为空")
    private String mainImage;


    @ApiModelProperty(value = "关联课程ID")
    @NotEmpty(message = "关联课程编号不可为空")
    private String courseId;


    @ApiModelProperty(value = "商品介绍")
    @NotEmpty(message = "商品介绍不可为空")
    private String introduction;


    @ApiModelProperty(value = "是否上架")
    @NotEmpty(message = "是否上架不可为空")
    private Boolean sell;

//    @ApiModelProperty(value = "售价集合")
//    private List<CamAndCDTO> camAndC;

}
